/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package demo1008;

/**
 *
 * @author Administrator
 */
public class AgricultureStudent extends Student {
  
    
    private int botany;
 

    public int getBotany() {
        return botany;
    }

    public void setBotany(int botany) {
        this.botany = botany;
    }
    public String getInfo1(){
        return "id="+getId()+"name="+getName()+
                "speciality="+getSpeciality()+"botany="+getBotany();
    }
    public String getInfo(){
        return "id="+getId()+"name="+getName()+
                "speciality="+getSpeciality()+"botany="+getBotany();
    }
}
